module RouteTools  
  URL = 'http://citypulse.com'
  HOST = "citypulse.com"
  PROTOCOL = "http"
  
  def self.included(base)
    base.send :extend, ClassMethods
  end
  
  module ClassMethods
    
    def self.extended(base)
      base.send :include, ActionController::UrlWriter
      base.default_url_options.update :host=>RouteTools::HOST, :protocol=>RouteTools::PROTOCOL
    end
  end
end
